module utils.DataCache;

import cachetools.cache;
import core.time : seconds;
import std.experimental.allocator.mallocator : Mallocator;

Cache2Q!(string, string, Mallocator) cacheData = null;

static this()
{
    if (cacheData is null)
    {
        cacheData = new Cache2Q!(string, string);
        cacheData.size = 2048;
        cacheData.ttl = 300.seconds;
    }
}
